Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward to analysis page (missing analysis) #1320

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

jstucke
Copy link
Collaborator

@jstucke jstucke commented Dec 16, 2024

  • if an analysis did not run for a file, the user is directed to an error page (a page empty except for an error message)
  • this is not helpful, so this PR changes this behavior as follows: Instead of showing the error page the user is forwarded back to the analysis page (without selected plugin) and the error is displayed as flash message
  • steps to (re)produce the error: Go to some file in a FW, run a "single file analysis" and go back to the root object through the link in the "general information" section

@jstucke jstucke added the gui label Dec 16, 2024
@jstucke jstucke self-assigned this Dec 16, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.90%. Comparing base (058e49f) to head (305f013).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1320      +/-   ##
==========================================
- Coverage   92.42%   91.90%   -0.53%     
==========================================
  Files         379      378       -1     
  Lines       23661    21097    -2564     
==========================================
- Hits        21869    19389    -2480     
+ Misses       1792     1708      -84     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maringuu
Copy link
Collaborator

Please put the PR description in the commit message.
If you do this before opening the commit, GitHub will automatically use the commit message as PR description.

@maringuu maringuu self-requested a review December 18, 2024 11:30
Copy link
Collaborator

@maringuu maringuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise lgtm.

instead of showing the error page
* if an analysis did not run for a file, the user is directed to an error page (a page empty except for an error message)
* this is not helpful, so this PR changes this behavior as follows: Instead of showing the error page the user is forwarded back to the analysis page (without selected plugin) and the error is displayed as flash message
* steps to (re)produce the error: Go to some file in a FW, run a "single file analysis" and go back to the root object through the link in the "general information" section
@jstucke jstucke force-pushed the missing-analysis-fix branch from e52b4b5 to 305f013 Compare December 19, 2024 07:59
@maringuu
Copy link
Collaborator

Thanks!

@maringuu maringuu merged commit b9c0a6a into master Dec 19, 2024
9 checks passed
@maringuu maringuu deleted the missing-analysis-fix branch December 19, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants